﻿#region Copyright (c) 2011, thinktecture (http://www.thinktecture.com)

/*
   thinktecture.UIAnnotations was developed by Jörg Neumann.
   Copyright (c) 2011, thinktecture (http://www.thinktecture.com).
   All rights reserved, comes as-is and without any warranty. Use of this
   source file is governed by the license which is contained in LICENSE.TXT 
   in the distribution.
*/

#endregion

using System;
using System.Linq;
using System.Windows;

namespace Thinktecture.DataForm
{
    public sealed class DataFormSubSource : DependencyObject
    {
        public static readonly DependencyProperty EntityPropertyNameProperty =
            DependencyProperty.Register("EntityPropertyName", typeof(string), typeof(DataFormSubSource), new UIPropertyMetadata(string.Empty));
        public string EntityPropertyName { get { return (string)GetValue(EntityPropertyNameProperty); } set { SetValue(EntityPropertyNameProperty, value); } }

        public static readonly DependencyProperty DataSourcePropertyNameProperty =
            DependencyProperty.Register("DataSourcePropertyName", typeof(string), typeof(DataFormSubSource), new UIPropertyMetadata(string.Empty));
        public string DataSourcePropertyName { get { return (string)GetValue(DataSourcePropertyNameProperty); } set { SetValue(DataSourcePropertyNameProperty, value); } }
    }
}
